package com.ely.coupon.activity.api;

import com.ely.coupon.activity.dto.CouponActivityInfo;
import com.ely.coupon.common.core.result.ResponseResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

public interface CouponActivityApi {
    @GetMapping("/info")
    ResponseResult<CouponActivityInfo> getCouponActivityInfo(@RequestParam Long couponActivityId);

    @GetMapping("/decrease")
    ResponseResult<Integer> decrease(@RequestParam Long couponActivityId, @RequestParam Integer quantity);


    /**
     * 获取新人优惠券
     */
    @GetMapping("/new/coupon/info")
    ResponseResult<CouponActivityInfo> getNewCouponInfo(@RequestParam Integer type);


}
